<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<p:dialog header="Car Detail" widgetVar="carDialog" styleClass="dlgGeneral"
	closable="#{templateConfiguration.DLG_CLOSABLE}"
	resizable="#{templateConfiguration.DLG_RESIZABLE}"
	modal="#{templateConfiguration.DLG_MODAL}"
	showEffect="#{templateConfiguration.DLG_SHOWEFFECT}"
	hideEffect="#{templateConfiguration.DLG_HIDEEFFECT}"
	visible="#{facesContext.validationFailed}" showHeader="none">
	<h:form id="form1" prependId="false" >
		<ui:include src="/back/maint/countr/fCountrEditGrid.xhtml" />
		<div class="ui-dialog-buttonpane ui-widget-content ">
			<p:commandButton styleClass="btnForm btnSave "
				update="display" icon="ui-icon-disk" value="Guardar"
				action="#{tableBean.save}"></p:commandButton>
			<p:commandButton styleClass="btnForm btnDelete" update="display"
				icon="ui-icon-trash" value="Eliminar"  rendered="#{tableBean.update}"
				action="#{tableBean.delete}">
				 <p:confirm header="Confirmation" message="Are you sure?" icon="ui-icon-alert" />	
			</p:commandButton>
			<p:commandButton styleClass="btnForm btnCancel" value="Cancelar"
				icon="ui-icon-cancel" onclick="carDialog.hide()" process="@this">
				<p:resetInput target="display" />
			</p:commandButton>
		</div>
	</h:form>
</p:dialog>
<h:form>
<p:confirmDialog global="true" showEffect="fade" hideEffect="drop" 
closable="false" closeOnEscape="true" styleClass="dlgConfirmation">  
        <p:commandButton value="Yes" type="button" styleClass="btnForm btnYes ui-confirmdialog-yes" icon="ui-icon-check"/>  
        <p:commandButton value="No" type="button" styleClass="btnForm btnNo ui-confirmdialog-no" icon="ui-icon-close"/>       
</p:confirmDialog>
</h:form>

</html>